cmake_minimum_required(VERSION 3.10)
project(libuvTest)

set(CMAKE_CXX_STANDARD 14)

include_directories(${PROJECT_SOURCE_DIR}/include)

add_executable(${PROJECT_NAME}
#        main_inter_thread_comm.cpp
#        main_pthread.cpp
#        thread.cpp
#        thread_cond.cpp
        encapsulation/TcpSocket.h encapsulation/TcpSocket.cpp
        TcpSocketImpl.h TcpSocketImpl.cpp
        encapsulation/Timer.cpp encapsulation/Timer.h
        encapsulation/header.h
        encapsulation/TcpServer.cpp encapsulation/TcpServer.h
        encapsulation/Thread.h encapsulation/Thread.cpp
        main_tcp_socket.cpp)

#link_directories(${PROJECT_SOURCE_DIR}/../libuv-v1.35.0/out/cmake/) #无效
target_link_libraries(${PROJECT_NAME}
        ${PROJECT_SOURCE_DIR}/libs/libuv_a.a -lws2_32 -lpsapi -liphlpapi -lUserenv pthread)
#-ldl)
